<!DOCTYPE html>
<html lang="en">
<head>
    <title>管理系统入口端</title>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- Bootstrap CSS -->
    {% load staticfiles %}
     <link rel="stylesheet" href="{% static '/js/js-a/bootstrap.min.css' %}">
    <link rel="stylesheet" href="{% static '/css/bootstrap.min.css' %}">
    <!-- FontAwesome CSS -->
    <link rel="stylesheet" href="{% static '/css/font-awesome.min.css' %}">
    <!-- ElegantFonts CSS -->
    <link rel="stylesheet" href="{% static '/css/elegant-fonts.css' %}">
    <!-- themify-icons CSS -->
    <link rel="stylesheet" href="{% static '/css/themify-icons.css' %}">
    <!-- Swiper CSS -->
    <link rel="stylesheet" href="{% static '/css/swiper.min.css' %}">
    <!-- Styles -->
   <link rel="stylesheet" href="{% static '/style.css' %}">

    <style type="text/css">
        .change-a-width li a{
            width: 95px;
        }


        .hero-content-overlay-height{
            height:290px;
           {% ifequal  latest_Empoly_list.employ_auth 0 %}
            height:600px;
           {% endifequal %}


        }

        .entry-header-top{
            margin-top: -230px;
        }
        .inputall{
            margin-top: 10px;
        }
        a{

                text-decoration:none !important;
            }
            .date-input{
                margin-top:0px
            }
    </style>
</head>
<body>
    <div class="hero-content">
        <header class="site-header">


        <div class="nav-bar">
            <div class="container">
                <div class="row">
                    <div class="col-9 col-lg-3">
                        <div class="site-branding">
                            <h1 class="site-title"><a href="{% url 'empoll:login' %}" rel="home">评分管理<small><span>系统</span></small></a></h1>
                        </div><!-- .site-branding -->
                    </div><!-- .col -->

                    <div class="col-3 col-lg-9 flex justify-content-end align-content-center">
                        <nav class="site-navigation flex justify-content-end align-items-center">
                            <ul class="flex flex-column flex-lg-row justify-content-lg-end align-content-center change-a-width">
                                <li class="current-menu-item"><a href="{% url 'empoll:login' %}">首页</a></li>
                                <!--<li><a href="#">新建</a></li>-->
                                <!--<li><a href="#">查询</a></li>-->
                                <!--<li><a href="">关于</a></li>-->

                            </ul>

                            <div class="hamburger-menu d-lg-none">
                                <span></span>
                                <span></span>
                                <span></span>
                                <span></span>
                            </div><!-- .hamburger-menu -->

                            <div class="header-bar-cart">
                                <a href="#" class="flex justify-content-center align-items-center"><span aria-hidden="true" class="icon_bag_alt"></span></a>
                            </div><!-- .header-bar-search -->
                        </nav><!-- .site-navigation -->
                    </div><!-- .col -->
                </div><!-- .row -->
            </div><!-- .container -->
        </div><!-- .nav-bar -->
    </header><!-- .site-header -->

    <div class="hero-content-overlay hero-content-overlay-height">
        <div class="container">
            <div class="row">
                {% ifequal latest_Empoly_list.employ_auth 0 %}
                <div class="col-12 col-lg-6">
                    <div class="hero-content-wrap flex flex-column justify-content-center align-items-start">
                        <header class="entry-header entry-header-top">
                            <h2 style="color:#19c880">管理员管理</h2>
                        </header><!-- .entry-header -->

                        <footer class="entry-footer read-more">
                            <a href="{% url 'empoll:touserlist' latest_Empoly_list.employ_ID %}">用户信息管理</a>
                        </footer><!-- .entry-footer -->
                        <footer class="entry-footer read-more">
                            <a href="{% url 'empoll:commentlist' latest_Empoly_list.employ_ID %}">评价管理</a>
                        </footer><!-- .entry-footer -->
                        <footer class="entry-footer read-more">
                            <a href="{% url 'empoll:toprint' latest_Empoly_list.employ_ID  %}">导出评价分数</a>
                        </footer><!-- .entry-footer -->
                        <footer class="entry-footer read-more">
                            <a href="{% url 'empoll:deleteallinformation' latest_Empoly_list.employ_ID  %}">清空目前所有评价得分</a>
                        </footer><!-- .entry-footer -->

                    </div><!-- .hero-content-wrap -->
                </div><!-- .col -->
                  <div class="col-12 col-lg-6">
                    <div class="hero-content-wrap flex flex-column justify-content-center align-items-start">
                        <header class="entry-header entry-header-top">
                          <div class="header-bar-search">
                                <form class="align-items-stretch row" method="post" action="{% url 'empoll:set_time' latest_Empoly_list.employ_ID %}">
                                     {% csrf_token %}
                                    <div style="color:#19c880" class="col-lg-12">开始时间</div><input type="datetime"   name='s_day' class="date-input col-lg-6" value="{{time.time_start|date:'Y-m-d H:i:s'}}"><div class="col-lg-12"></div>
                                    <div style="color:#19c880" class="col-lg-12">终止时间</div><input type="datetime"   name='e_day' class="date-input col-lg-6 " value="{{time.time_end|date:'Y-m-d H:i:s'}}"><div class="col-lg-12"></div>

                                    <input type="submit" value="设置"  class="deletebutton  col-12 col-lg-4" style="margin-left:0px">

                                </form>
                            </div><!--.header-bar-search-->
                        </header><!-- .entry-header -->
                        <footer class="entry-footer read-more">
                            <a href="{% url 'empoll:set_weight_value' latest_Empoly_list.employ_ID  %}">定义权值标签</a>
                        </footer><!-- .entry-footer -->



                    </div><!-- .hero-content-wrap -->

                </div><!-- .col -->
                {% endifequal %}
            </div><!-- .row -->
        </div><!-- .container -->
    </div><!-- .hero-content-hero-content-overlay -->
</div><!-- .hero-content -->

<section class="featured-courses horizontal-column courses-wrap">
    <div class="container">
        <div class="row">
            <div class="col-12">
                <header class="heading flex justify-content-between align-items-center">
                    <h2 class="entry-title">信息预览</h2>
                    <a class="btn mt-4 mt-sm-0" href="{% url 'empoll:changeinfor' latest_Empoly_list.employ_ID%}">更改信息</a>
                </header><!-- .heading -->
            </div><!-- .col -->




            {% if latest_Empoly_list %}
            <div class="col-12 col-lg-12">
                <div class="course-content flex flex-wrap justify-content-between align-content-lg-stretch row">

                    <div class="course-content-wrap col-12 col-lg-6 " >
                        <header class="entry-header">
                            <h2 class="entry-title">姓名:</h2>
                            <div class="entry-meta flex flex-wrap align-items-center">
                                {{latest_Empoly_list.employ_name}}
                            </div><!-- .course-date -->
                        </header><!-- .entry-header -->
                        <div class="entry-footer">
                            ID:{{latest_Empoly_list.employ_ID}}
                        </div><!-- .entry-footer -->
                        <div class="entry-footer ">
                            职位:
                             {% ifequal latest_Empoly_list.employ_auth 0 %}
                            管理员
                            {% endifequal %}
                            {% ifequal latest_Empoly_list.employ_auth 1 %}
                            书记
                            {% endifequal %}
                            {% ifequal latest_Empoly_list.employ_auth 2%}
                            院长
                            {% endifequal %}
                            {% ifequal latest_Empoly_list.employ_auth 3%}
                            院领导
                            {% endifequal %}
                            {% ifequal latest_Empoly_list.employ_auth 4%}
                            部门负责人
                            {% endifequal %}
                            {% ifequal latest_Empoly_list.employ_auth 5%}
                            其他中层
                            {% endifequal %}
                            {% ifequal latest_Empoly_list.employ_auth 6%}
                            专职教师
                            {% endifequal %}
                            {% ifequal latest_Empoly_list.employ_auth 7%}
                            辅导员
                            {% endifequal %}
                            {% ifequal latest_Empoly_list.employ_auth 8%}
                            普通职工
                            {% endifequal %}

                        </div><!-- .entry-footer -->
                        <div class="entry-footer ">
                            部门:{{latest_Empoly_list.employ_depart}}
                        </div><!-- .entry-footer -->
                        <div class="entry-footer ">
                            是否中层:{% if latest_Empoly_list.employ_ismiddle%} 是{%else%}否{%endif%}
                        </div><!-- .entry-footer -->
                        <div class="entry-footer ">
                            登录密码:{{latest_Empoly_list.employ_login}}
                        </div><!-- .entry-footer -->
                        {% if has_else_msg %}
                        <div class="entry-footer " style="color:red">
                            {{has_else_msg}}
                        </div><!-- .entry-footer -->
                        {% endif %}
                    </div><!-- .course-content-wrap -->
                    <div class="course-content-wrap col-12 col-lg-6" >
                        <header class="entry-header">
                            <h2 class="entry-title">待评价列表:</h2>
                            <div class="entry-meta flex flex-wrap align-items-center">
                            </div><!-- .course-date -->
                        </header><!-- .entry-header -->
                        {% csrf_token %}
                        <div class="panel-group" id="accordion">
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    <h4 class="panel-title">
                                        <a data-toggle="collapse" data-parent="#accordion"
                                           href="#collapseFour">
                                            第二组教职工打分(主管领导:金绪泽院长、张长伟副院长)
                                        </a>
                                    </h4>
                                </div>
                                <div id="collapseFour" class="panel-collapse collapse">
                                    <div class="panel-body">
                                        {% for obj in jin %}
                                        {% if obj.employ_ID not in employhas %}
                                        <div class="entry-footer" style="border: 1px dotted gray;padding: 0 0 1px 20px;">
                                           <a href="{% url  'empoll:toevaluate' latest_Empoly_list.employ_ID obj.employ_ID %}" style="color:#cc6611;"> 部门:{{obj.employ_depart}},<b>姓名:{{obj.employ_name}},ID:{{obj.employ_ID}},职位:{% ifequal obj.employ_auth 0 %}
                            管理员
                            {% endifequal %}
                            {% ifequal obj.employ_auth 1 %}
                            书记
                            {% endifequal %}
                            {% ifequal obj.employ_auth 2%}
                            院长
                            {% endifequal %}
                            {% ifequal obj.employ_auth 3%}
                            院领导
                            {% endifequal %}
                            {% ifequal obj.employ_auth 4%}
                            部门负责人
                            {% endifequal %}
                            {% ifequal obj.employ_auth 5%}
                            其他中层
                            {% endifequal %}
                            {% ifequal obj.employ_auth 6%}
                            专职教师
                            {% endifequal %}
                            {% ifequal obj.employ_auth 7%}
                            辅导员
                            {% endifequal %}
                            {% ifequal obj.employ_auth 8%}
                            普通职工
                                    {% endifequal %}</b></a>
                                            <form  action="{% url 'empoll:addscore' latest_Empoly_list.employ_ID obj.employ_ID %}" method="post"  class="form_value">
                                                {% csrf_token %}
                                                <input type="number" class="input_value" placeholder="输入评分" name="score_value"  min="0" max="100" style="width: 50%;"/>
                                                <input type="text" value="{{obj.employ_ID}}" name="scorer_appraisered" class="input_id" style="display:None"/>
                                                <span class="label label-info"><red style="color:red">*</red>请输入在0-100内的分值</span>
                                                <!--<input type="submit" value="评价" style="width:220px" class="inputall">-->
                                         </form>
                                         </div><!-- .entry-footer -->

                                        {% endif %}
                                        {% endfor %}

                                        {% for obj in jin_ed %}
                                        <div class="entry-footer" style="border: 1px dotted gray;padding: 0 0 -1px 20px;">
                                           <a href="{% url  'empoll:toevaluate' latest_Empoly_list.employ_ID obj.people.employ_ID %}" style="color:green;">(已评价){{obj.value}}部门:{{obj.people.employ_depart}},<b>姓名:{{obj.people.employ_name}},ID:{{obj.people.employ_ID}},职位:{% ifequal obj.people.employ_auth 0 %}
                            管理员
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 1 %}
                            书记
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 2%}
                            院长
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 3%}
                            院领导
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 4%}
                            部门负责人
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 5%}
                            其他中层
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 6%}
                            专职教师
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 7%}
                            辅导员
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 8%}
                            普通职工
                                    {% endifequal %}</b></a>
                                            <!--<form  action="{% url 'empoll:addscore' latest_Empoly_list.employ_ID obj.people.employ_ID %}" method="post"  class="form_value">-->
                                                    <!--{% csrf_token %}-->
                                                    <!--<input type="number" class="input_value" placeholder="输入评分" name="score_value" value="{{obj.value}}" min="0" max="100" style="width: 50%;"/>-->
                                                    <!--<input type="text" value="{{obj.people.employ_ID}}" name="scorer_appraisered" class="input_id" style="display:None"/>-->
                                                    <!--<span class="label label-info"><red style="color:red">*</red>请输入在0-100内的分值</span>-->
                                                    <!--<input type="submit" value="评价" style="width:220px" class="inputall">-->
                                             <!--</form>-->
                                         </div><!-- .entry-footer -->
                                        {% endfor %}
                                        <input type="button" value="评价该组所有成员" style="width:220px" class="inputall small"><span><red style="color:red">*</red>提交后不可修改</span>
                                    </div>
                                </div>
                            </div>

                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    <h4 class="panel-title">
                                        <a data-toggle="collapse" data-parent="#accordion"
                                           href="#collapseTwo">
                                           第三组教职工打分(主管院领导:李浩副书记)
                                        </a>
                                    </h4>
                                </div>
                                <div id="collapseTwo" class="panel-collapse collapse">
                                    <div class="panel-body">
                                        {% for obj in li %}
                                        {% if obj.employ_ID not in employhas %}
                                        <div class="entry-footer" style="border: 1px dotted gray;padding: 0 0 1px 20px;">
                                           <a href="{% url  'empoll:toevaluate' latest_Empoly_list.employ_ID obj.employ_ID %}" style="color:#cc6611;"> 部门:{{obj.employ_depart}},<b>姓名:{{obj.employ_name}},ID:{{obj.employ_ID}},职位:{% ifequal obj.employ_auth 0 %}
                            管理员
                            {% endifequal %}
                            {% ifequal obj.employ_auth 1 %}
                            书记
                            {% endifequal %}
                            {% ifequal obj.employ_auth 2%}
                            院长
                            {% endifequal %}
                            {% ifequal obj.employ_auth 3%}
                            院领导
                            {% endifequal %}
                            {% ifequal obj.employ_auth 4%}
                            部门负责人
                            {% endifequal %}
                            {% ifequal obj.employ_auth 5%}
                            其他中层
                            {% endifequal %}
                            {% ifequal obj.employ_auth 6%}
                            专职教师
                            {% endifequal %}
                            {% ifequal obj.employ_auth 7%}
                            辅导员
                            {% endifequal %}
                            {% ifequal obj.employ_auth 8%}
                            普通职工
                                    {% endifequal %}</b></a>
                                            <form  action="{% url 'empoll:addscore' latest_Empoly_list.employ_ID obj.employ_ID %}" method="post"  class="form_value">
                                                {% csrf_token %}
                                                <input type="number" class="input_value" placeholder="输入评分" name="score_value" min="0" max="100" style="width: 50%;"/>
                                                <input type="text" value="{{obj.employ_ID}}" name="scorer_appraisered" class="input_id" style="display:None"/>
                                                <span class="label label-info"><red style="color:red">*</red>请输入在0-100内的分值</span>
                                                <!--<input type="submit" value="评价" style="width:220px" class="inputall">-->
                                         </form>
                                         </div><!-- .entry-footer -->
                                        {% endif %}
                                        {% endfor %}

                                        {% for obj in li_ed %}
                                        <div class="entry-footer" style="border: 1px dotted gray;padding: 0 0 -1px 20px;">
                                           <a href="{% url  'empoll:toevaluate' latest_Empoly_list.employ_ID obj.people.employ_ID %}" style="color:green;">(已评价){{obj.value}}部门:{{obj.people.employ_depart}},<b>姓名:{{obj.people.employ_name}},ID:{{obj.people.employ_ID}},职位:{% ifequal obj.people.employ_auth 0 %}
                            管理员
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 1 %}
                            书记
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 2%}
                            院长
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 3%}
                            院领导
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 4%}
                            部门负责人
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 5%}
                            其他中层
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 6%}
                            专职教师
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 7%}
                            辅导员
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 8%}
                            普通职工
                                    {% endifequal %}</b></a>
                                            <!--<form  action="{% url 'empoll:addscore' latest_Empoly_list.employ_ID obj.people.employ_ID %}" method="post"  class="form_value">-->
                                                    <!--{% csrf_token %}-->
                                                    <!--<input type="number" class="input_value" placeholder="输入评分" name="score_value" value="{{obj.value}}" min="0" max="100" style="width: 50%;"/>-->
                                                    <!--<input type="text" value="{{obj.people.employ_ID}}" name="scorer_appraisered" class="input_id" style="display:None"/>-->
                                                    <!--<span class="label label-info"><red style="color:red">*</red>请输入在0-100内的分值</span>-->
                                                    <!--<input type="submit" value="评价" style="width:220px" class="inputall">-->
                                             <!--</form>-->
                                         </div><!-- .entry-footer -->
                                        {% endfor %}
                                        <input type="button" value="评价该组所有成员" style="width:220px" class="inputall small" ><span ><red style="color:red">*</red>提交后不可修改</span>
                                    </div>
                                </div>

                            </div>

                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    <h4 class="panel-title">
                                        <a data-toggle="collapse" data-parent="#accordion"
                                           href="#collapseThree">
                                            第四组教职工打分(主管院领导:张长伟副院长)
                                        </a>
                                    </h4>
                                </div>
                                <div id="collapseThree" class="panel-collapse collapse">
                                    <div class="panel-body">
                                       {% for obj in zhang %}
                                        {% if obj.employ_ID not in employhas %}
                                        <div class="entry-footer" style="border: 1px dotted gray;padding: 0 0 1px 20px;">
                                           <a href="{% url  'empoll:toevaluate' latest_Empoly_list.employ_ID obj.employ_ID %}" style="color:#cc6611;"> 部门:{{obj.employ_depart}},<b>姓名:{{obj.employ_name}},ID:{{obj.employ_ID}},职位:{% ifequal obj.employ_auth 0 %}
                            管理员
                            {% endifequal %}
                            {% ifequal obj.employ_auth 1 %}
                            书记
                            {% endifequal %}
                            {% ifequal obj.employ_auth 2%}
                            院长
                            {% endifequal %}
                            {% ifequal obj.employ_auth 3%}
                            院领导
                            {% endifequal %}
                            {% ifequal obj.employ_auth 4%}
                            部门负责人
                            {% endifequal %}
                            {% ifequal obj.employ_auth 5%}
                            其他中层
                            {% endifequal %}
                            {% ifequal obj.employ_auth 6%}
                            专职教师
                            {% endifequal %}
                            {% ifequal obj.employ_auth 7%}
                            辅导员
                            {% endifequal %}
                            {% ifequal obj.employ_auth 8%}
                            普通职工
                                    {% endifequal %}</b></a>
                                            <form  action="{% url 'empoll:addscore' latest_Empoly_list.employ_ID obj.employ_ID %}" method="post"  class="form_value">
                                                {% csrf_token %}
                                                <input type="number" class="input_value" placeholder="输入评分" name="score_value"  min="0" max="100" style="width: 50%;"/>
                                                <input type="text" value="{{obj.employ_ID}}" name="scorer_appraisered" class="input_id" style="display:None"/>
                                                <span class="label label-info"><red style="color:red">*</red>请输入在0-100内的分值</span>
                                                <!--<input type="submit" value="评价" style="width:220px" class="inputall">-->
                                         </form>
                                         </div><!-- .entry-footer -->
                                        {% endif %}
                                        {% endfor %}

                                        {% for obj in zhang_ed %}
                                        <div class="entry-footer" style="border: 1px dotted gray;padding: 0 0 -1px 20px;">
                                           <a href="{% url  'empoll:toevaluate' latest_Empoly_list.employ_ID obj.people.employ_ID %}" style="color:green;">(已评价){{obj.value}}部门:{{obj.people.employ_depart}}<b>姓名:{{obj.people.employ_name}},ID:{{obj.people.employ_ID}},职位:{% ifequal obj.people.employ_auth 0 %}
                            管理员
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 1 %}
                            书记
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 2%}
                            院长
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 3%}
                            院领导
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 4%}
                            部门负责人
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 5%}
                            其他中层
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 6%}
                            专职教师
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 7%}
                            辅导员
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 8%}
                            普通职工
                                    {% endifequal %}</b></a>
                                            <!--<form  action="{% url 'empoll:addscore' latest_Empoly_list.employ_ID obj.people.employ_ID %}" method="post"  class="form_value">-->
                                                    <!--{% csrf_token %}-->
                                                    <!--<input type="number" class="input_value" placeholder="输入评分" name="score_value" value="{{obj.value}}" min="0" max="100" style="width: 50%;"/>-->
                                                    <!--<input type="text" value="{{obj.people.employ_ID}}" name="scorer_appraisered" class="input_id" style="display:None"/>-->
                                                    <!--<span class="label label-info"><red style="color:red">*</red>请输入在0-100内的分值</span>-->
                                                    <!--<input type="submit" value="评价" style="width:220px" class="inputall">-->
                                             <!--</form>-->
                                         </div><!-- .entry-footer -->
                                        {% endfor %}
                                        <input type="button" value="评价该组所有成员" style="width:220px" class="inputall small"><span><red style="color:red">*</red>提交后不可修改</span>
                                    </div>
                                </div>

                            </div>
                             <div class="panel panel-default">
                                <div class="panel-heading">
                                    <h4 class="panel-title">
                                        <a data-toggle="collapse" data-parent="#accordion"
                                           href="#collapseOne">
                                            第五组教职工打分(主管院领导:王虎副院长)
                                        </a>
                                    </h4>
                                </div>
                                <div id="collapseOne" class="panel-collapse collapse in">
                                    <div class="panel-body">

                                        {% for obj in wang %}
                                        {% if obj.employ_ID not in employhas %}
                                        <div class="entry-footer" style="border: 1px dotted gray;padding: 0 0 1px 20px;">
                                           <a href="{% url  'empoll:toevaluate' latest_Empoly_list.employ_ID obj.employ_ID %}" style="color:#cc6611;"> 部门:{{obj.employ_depart}},<b>姓名:{{obj.employ_name}},ID:{{obj.employ_ID}},职位:{% ifequal obj.employ_auth 0 %}
                            管理员
                            {% endifequal %}
                            {% ifequal obj.employ_auth 1 %}
                            书记
                            {% endifequal %}
                            {% ifequal obj.employ_auth 2%}
                            院长
                            {% endifequal %}
                            {% ifequal obj.employ_auth 3%}
                            院领导
                            {% endifequal %}
                            {% ifequal obj.employ_auth 4%}
                            部门负责人
                            {% endifequal %}
                            {% ifequal obj.employ_auth 5%}
                            其他中层
                            {% endifequal %}
                            {% ifequal obj.employ_auth 6%}
                            专职教师
                            {% endifequal %}
                            {% ifequal obj.employ_auth 7%}
                            辅导员
                            {% endifequal %}
                            {% ifequal obj.employ_auth 8%}
                            普通职工
                                    {% endifequal %}</b></a>
                                            <form  action="{% url 'empoll:addscore' latest_Empoly_list.employ_ID obj.employ_ID %}" method="post"  class="form_value">
                                                    {% csrf_token %}
                                                    <input type="number" class="input_value" placeholder="输入评分" name="score_value"  min="0" max="100" style="width: 50%;"/>
                                                    <input type="text" value="{{obj.employ_ID}}" name="scorer_appraisered" class="input_id" style="display:None"/>
                                                    <span class="label label-info"><red style="color:red">*</red>请输入在0-100内的分值</span>
                                                    <!--<input type="submit" value="评价" style="width:220px" class="inputall">-->
                                             </form>
                                         </div><!-- .entry-footer -->
                                        {% endif %}
                                        {% endfor %}

                                        {% for obj in wang_ed %}
                                        <div class="entry-footer" style="border: 1px dotted gray;padding: 0 0 -1px 20px;">
                                           <a href="{% url  'empoll:toevaluate' latest_Empoly_list.employ_ID obj.people.employ_ID %}" style="color:green;">(已评价){{obj.value}}部门:{{obj.people.employ_depart}},<b>姓名:{{obj.people.employ_name}},ID:{{obj.people.employ_ID}},职位:{% ifequal obj.people.employ_auth 0 %}
                            管理员
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 1 %}
                            书记
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 2%}
                            院长
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 3%}
                            院领导
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 4%}
                            部门负责人
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 5%}
                            其他中层
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 6%}
                            专职教师
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 7%}
                            辅导员
                            {% endifequal %}
                            {% ifequal obj.people.employ_auth 8%}
                            普通职工
                                    {% endifequal %}</b></a>
                                            <!--<form  action="{% url 'empoll:addscore' latest_Empoly_list.employ_ID obj.people.employ_ID %}" method="post"  class="form_value">-->
                                                    <!--{% csrf_token %}-->
                                                    <!--<input type="number" class="input_value" placeholder="输入评分" name="score_value" value="{{obj.value}}" min="0" max="100" style="width: 50%;"/>-->
                                                    <!--<input type="text" value="{{obj.people.employ_ID}}" name="scorer_appraisered" class="input_id" style="display:None"/>-->
                                                    <!--<span class="label label-info"><red style="color:red">*</red>请输入在0-100内的分值</span>-->
                                                    <!--<input type="submit" value="评价" style="width:220px" class="inputall">-->
                                             <!--</form>-->
                                         </div><!-- .entry-footer -->
                                        {% endfor %}
                                        <input type="button" value="评价该组所有成员" style="width:220px" class="inputall small" ><span><red style="color:red">*</red>提交后不可修改</span>
                                    </div>
                                </div>


                            </div>

                        </div>
                        <div>
                            <!--{% if all_employ_list %}-->
                            <!--{% for obj in all_employ_list %}-->
                            <!--{% if obj.employ_ID not in employhas %}-->
                            <!--<div class="entry-footer" style="border: 1px dotted gray;padding: 0 0 1px 20px;">-->
                                <!--<a href="{% url  'empoll:toevaluate' latest_Empoly_list.employ_ID obj.employ_ID %}" style="color:#cc6611;"> 部门:{{obj.employ_depart}},<b>姓名:{{obj.employ_name}},ID:{{obj.employ_ID}},职位:{% ifequal obj.employ_auth 0 %}-->
                            <!--管理员-->
                            <!--{% endifequal %}-->
                            <!--{% ifequal obj.employ_auth 1 %}-->
                            <!--书记-->
                            <!--{% endifequal %}-->
                            <!--{% ifequal obj.employ_auth 2%}-->
                            <!--院长-->
                            <!--{% endifequal %}-->
                            <!--{% ifequal obj.employ_auth 3%}-->
                            <!--院领导-->
                            <!--{% endifequal %}-->
                            <!--{% ifequal obj.employ_auth 4%}-->
                            <!--部门负责人-->
                            <!--{% endifequal %}-->
                            <!--{% ifequal obj.employ_auth 5%}-->
                            <!--其他中层-->
                            <!--{% endifequal %}-->
                            <!--{% ifequal obj.employ_auth 6%}-->
                            <!--专职教师-->
                            <!--{% endifequal %}-->
                            <!--{% ifequal obj.employ_auth 7%}-->
                            <!--辅导员-->
                            <!--{% endifequal %}-->
                            <!--{% ifequal obj.employ_auth 8%}-->
                            <!--普通职工-->
                                    <!--{% endifequal %}</b></a>-->
                                <!--<form  action="{% url 'empoll:addscore' latest_Empoly_list.employ_ID obj.employ_ID %}" method="post"  class="form_value">-->
                                        <!--{% csrf_token %}-->
                                        <!--<input type="number" class="input_value" placeholder="输入评分" name="score_value" value="100" min="0" max="100" style="width: 50%;"/>-->
                                        <!--<input type="text" value="{{obj.employ_ID}}" name="scorer_appraisered" class="input_id" style="display:None"/>-->
                                        <!--<span class="label label-info"><red style="color:red">*</red>请输入在0-100内的分值</span>-->
                                        <!--<input type="submit" value="评价" style="width:220px" class="inputall">-->
                                 <!--</form>-->
                            <!--</div>&lt;!&ndash; .entry-footer &ndash;&gt;-->
                            <!--{% else %}-->
                            <!--<div class="entry-footer">-->
                                <!--<a  style="color:green"> {{obj.employ_depart}}{{obj.employ_name}}{{obj.employ_ID}}(已评价){% ifequal obj.employ_auth 0 %}-->
                            <!--管理员-->
                            <!--{% endifequal %}-->
                            <!--{% ifequal obj.employ_auth 1 %}-->
                            <!--书记-->
                            <!--{% endifequal %}-->
                            <!--{% ifequal obj.employ_auth 2%}-->
                            <!--院长-->
                            <!--{% endifequal %}-->
                            <!--{% ifequal obj.employ_auth 3%}-->
                            <!--院领导-->
                            <!--{% endifequal %}-->
                            <!--{% ifequal obj.employ_auth 4%}-->
                            <!--部门负责人-->
                            <!--{% endifequal %}-->
                            <!--{% ifequal obj.employ_auth 5%}-->
                            <!--其他中层-->
                            <!--{% endifequal %}-->
                            <!--{% ifequal obj.employ_auth 6%}-->
                            <!--专职教师-->
                            <!--{% endifequal %}-->
                            <!--{% ifequal obj.employ_auth 7%}-->
                            <!--辅导员-->
                            <!--{% endifequal %}-->
                            <!--{% ifequal obj.employ_auth 8%}-->
                            <!--普通职工-->
                            <!--{% endifequal %}</a>-->
                                <!--<form  action="{% url 'empoll:addscore' latest_Empoly_list.employ_ID obj.employ_ID %}" method="post"  class="form_value">-->
                                        <!--{% csrf_token %}-->
                                        <!--<input type="number" class="input_value" placeholder="输入评分" name="score_value" value="100" min="0" max="100" style="width: 50%;"/>-->
                                        <!--<input type="text" value="{{obj.employ_ID}}" name="scorer_appraisered" class="input_id" style="display:None"/>-->
                                        <!--<span class="label label-info"><red style="color:red">*</red>请输入在0-100内的分值</span>-->
                                        <!--<input type="submit" value="评价" style="width:220px" class="inputall">-->
                                 <!--</form>-->
                            <!--</div>&lt;!&ndash; .entry-footer &ndash;&gt;-->
                            <!--{% endif %}-->
                            <!--{% endfor %}-->
                            <!--{% else %}-->
                            <!--<div class="entry-footer">-->
                            <!--没有该您评价的人-->
                             <!--</div>&lt;!&ndash; .entry-footer &ndash;&gt;-->
                            <!--{% endif %}-->

                        </div>



                    </div><!-- .course-content-wrap -->


            </div><!-- .col -->
            </div>
            {% else %}
            <h4 class="site-title"> 没有信息可以预览 </h4>
            {% endif %}

        </div><!-- .row -->
    </div><!-- .container -->
    </div>
</section><!-- .courses-wrap -->

<footer class="site-footer">
        <div class="footer-bar">
            <div class="container">
                <div class="row flex-wrap justify-content-center justify-content-lg-between align-items-center">
                    <div class="col-12 col-lg-4">
                        <div class="download-apps flex flex-wrap justify-content-center justify-content-lg-start align-items-center">
                            <a href="http://www.henannu.edu.cn/"><img src="{% static '/images/shid.jpg' %}" alt="" style="height: 37px;width: 119px;"></a>
                            <a href="https://github.com/aoxipo"><img src="{% static '/images/my1.png'  %}" alt="" style="height: 37px;width: 119px;"></a>
                        </div><!-- .download-apps -->

                    </div>
                    <div class="col-12 col-lg-4" style="text-align: center;padding-top: 10px;"><a href="http://www.miitbeian.gov.cn/" style="color: #757686;">豫ICP备18043565号</a></div>
                    <div class="col-12 col-lg-4 mt-4 mt-lg-0">
                        <div class="footer-bar-nav">
                            <ul class="flex flex-wrap justify-content-center justify-content-lg-end align-items-center">
                                <li><a href="#">list</a></li>
                                <li><a href="#">Terms of Use</a></li>
                                <li><a href="https://github.com/aoxipo">Privacy Policy</a></li>
                            </ul>
                        </div><!-- .footer-bar-nav -->
                    </div><!-- .col-12 -->
                </div><!-- .row -->
            </div><!-- .container -->
        </div><!-- .footer-bar -->
    </footer><!-- .site-footer -->

    <script type='text/javascript' src="{% static '/js/jquery.js' %}"></script>
    <script type='text/javascript' src="{% static '/js/jquery-3.3.1.min.js' %}"></script>
    <script type='text/javascript' src="{% static '/js/js-a/bootstrap.min.js' %}"></script>
    <script type="text/javascript" src="{% static '/js/swiper.min.js'%}" ></script>
    <script type='text/javascript' src="{% static '/js/masonry.pkgd.min.js' %}"></script>
    <script type='text/javascript' src="{% static '/js/jquery.collapsible.min.js' %}"></script>
    <script type='text/javascript' src="{% static '/js/custom.js' %}"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $.ajaxSetup({
                 data: {csrfmiddlewaretoken: '{{ csrf_token }}' },
                });

             alert("您好!欢迎进入2018年教职工年度校绩考核打分系统,请按以下分组分别打分,分数区间为0~100分,且每一分组内95分及以上的人员不得超过分组内所有成员50%");


            {% if latest_Empoly_list.employ_auth%}
             {% ifequal latest_Empoly_list.employ_login 123456 %}
             check();
             {%endifequal%}
             {%endif%}
            });


        function check() {
            var msg = "检测到您的登录密码为默认的密码,是否先进行更改密码?";
            if (confirm(msg)==true){

                $.ajax({
                    type:"POST",

                    url: "{% url 'empoll:changeinfor' latest_Empoly_list.employ_ID%}",
                    cache: false,
                    dataType: "html",
                    success: function(data)
                    {
                        window.location.href="{% url 'empoll:changeinfor' latest_Empoly_list.employ_ID%}";
                    },
                    error: function()
                    {
                        alert("后台繁忙,请重试,若一直无法跳转,请联系管理员");
                    }
                });
            }else{
                   //do nothing
            }
        }


        $('.small').click(function()
        {
               var score_value_list=$(this).siblings().find('.input_value');
               var score_appraisered_list=$(this).siblings().find('.input_id');
              // var score_value_list = $('.input_value');
               //var score_appraisered_list=$('.input_id');
               if(score_value_list.length==0)
                {
                 alert('您已评论该组所有人')
                 return
                }
                for (var i=0;i<score_value_list.length;i++)
                {
                if(score_value_list[i].value=='' || score_value_list[i].value<0||score_value_list[i].value>100)
                {
                 alert('您输入评价有误请保证输入正确');
                 return;
                }
                }
               var score_value = new Array();
               var score_appraisered=new Array();
                for (var i=0;i<score_value_list.length;i++)
	            {
    	            score_value[i]=score_value_list[i].value;
    	            score_appraisered[i]=score_appraisered_list[i].value;
	            }
               //data={'score_value':'\''+score_value+'\'','score_appraisered':'\''+score_appraisered+'\''};
               //alert(data['score_value']+data['score_appraisered'])



                 $.ajax({
                    type:"POST",
                    data: {'score_value':'\''+score_value+'\'','score_appraisered':'\''+score_appraisered+'\''},
                    url: "{% url 'empoll:addscoreall' latest_Empoly_list.employ_ID %}", //后台处理函数的url 这里用的是static url 需要与urls.py中的name一致
                    cache: false,
                    dataType: "html",
                    success: function(data)
                    {
                        alert(data);                                         //成功时弹出view传回来的结果
                        window.location.reload();
                    },
                    error: function()
                    {
                        alert("所有表单提交错误");
                    }
                });

        });




    </script>

</body>
</html>